import * as types from './types'
// 由mutation来修改state
const mutations = {
    [types.SET_OPENID]: function (state, data) {
        state.openid = data;
    },
    [types.SET_APPID]: function (state, data) {
        state.appid = data;
    },
    [types.SET_SECRET]: function (state, data) {
        state.secret = data;
    },
    [types.SET_USER_INFO]: function (state, data) {
        state.userinfo = data;
    },
    [types.UPDATE_LOADING]: function (state, data) {
        state.isLoading = data;
    },
    [types.FILL_ARR]: function (state, data) {
        state.dataArr = data;
    },
    [types.UPDATE_BASEINFO]: function (state, data) {
        state.baseInfo = data;
    },
    [types.SET_FLAG]: function (state, data) {
        state.isBind = data;
    },
    [types.UPDATE_COMPANYLIST]: function (state, data) {
        state.companyList = data;
    }
}
export default mutations